/*
Read Netstumbler data files.
- Copyright (C) 2004 Robert Lipe, robertlipe@usa.net and
+ Copyright (C) 2004, 2005 Robert Lipe, robertlipe@usa.net and
John Temples; gpsns@xargs.com
This program is free software; you can redistribute it and/or modify
static char *seicon = NULL;
static char *sneicon = NULL;
static char *snmac = NULL;
+static int macstumbler;
static void fix_netstumbler_dupes(void);
rd_init(const char *fname)
{
file_in = xfopen(fname, "r", MYNAME);
+ macstumbler = 0;
}
static void
tm.tm_mday = atoi(&ibuf[20]);
}
+ /*
+ * Mac stumbler files are the same, except
+ * use DDMM.mmm instad of DD.DDDD.
+ */
+ if (strstr(ibuf, "Creator: MacStumbler")) {
+ macstumbler = 1;
+ }
+
continue;
}
lat = atof(&field[2]);
if (field[0] == 'S')
lat = -lat;
+ if (macstumbler) {
+ lat = ddmm2degrees(lat);
+ }
break;
case 1: /* long */
lon = atof(&field[2]);
if (field[0] == 'W')
lon = -lon;
+ if (macstumbler) {
+ lon = ddmm2degrees(lon);
+ }
break;
case 2: /* ( SSID ) */
in bash and possibly other shells, so you may have to use single
quotes or some other escape mechanism.
</para>
+ <para>There is a tutorial <ulink url="http://www.gpsbabel.org/formats/delorme-new-interstate/"> how to create an onramp for a limited access highway in Street Atlas USA using GPSBabel.</ulink>
+ </para>
</section>
<section id="baroiq">
non-encrypted, stealth, and non-stealth access points; these may be
changed with options. Import only.
</para>
+<para>This format also works with MacStumbler.</para>
<para> Additional options:</para>
<para>
<option>nsneicon</option> - Name of icon used for